<?php

class msg_content{
public function index(){
$supplier_id = intval($GLOBALS['request']['supplier_id']);
$email = strim($GLOBALS['request']['email']);
$pwd = strim($GLOBALS['request']['pwd']);
$user = user_check($email,$pwd);
$user_id  = intval($user['id']);
if($user['id']<=0)
{
$root['user_login_status'] = 0;
$root['return']=0;
output($root);
}
$time=date('Y-m-d H:i',time()+30*60);
$data=$GLOBALS['db']->getRow('select name,address,xpoint,ypoint from '.DB_PREFIX."supplier_location where id='{$supplier_id}' ");
$data['templ_tp1']="{$user['user_name']}诚邀您莅临{$data['address']}的{$data['name']}，{$time}，恭候尊驾！";
$data['templ_tp2'] = "{$user['user_name']}已订{$time}{$data['address']}的{$data['name']}，一起happy！";
$data['templ_tp3']=  "{$time}，{$user['user_name']}在{$data['address']}的{$data['name']}，和您欢乐一家亲！";
$data['templ_tp4']= "亲，{$data['name']}的位子终于搞定，{$time}{$data['address']}，等你！ ";
$data['templ_tp5']= "{$time}{$data['address']}的{$data['name']}，{$user['user_name']}邀您粗茶淡饭，别穿皮草！ ";
$root['item']=$data;
output($root);
}
}

?>